// 创建工单时, 相应的状态管理

const state = {
  list_workorder: [],
  list_user: []
}

const mutations = {
  GET_WORKORDER_TYPE: (state, list) => {
    state.list_workorder = list
  },
  GET_LIST_USER: (state, list) => {
    state.list_user = list
  }
}

const actions = {
  getWorkorderType({ commit }, list) {
    commit('GET_WORKORDER_TYPE', list)
  },
  getListUser({ commit }, list) {
    commit('GET_LIST_USER', list)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
